package org.qiuqiu.vo;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Replysecond {
    private Integer replysecondid;

    private Integer replyid;

    private Integer postid;

    private Integer userid;

    private String replyUsername;

    private Date replyCreatetime;

    private String replyContent;

    public Integer getReplysecondid() {
        return replysecondid;
    }

    public void setReplysecondid(Integer replysecondid) {
        this.replysecondid = replysecondid;
    }

    public Integer getReplyid() {
        return replyid;
    }

    public void setReplyid(Integer replyid) {
        this.replyid = replyid;
    }

    public Integer getPostid() {
        return postid;
    }

    public void setPostid(Integer postid) {
        this.postid = postid;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public String getReplyUsername() {
        return replyUsername;
    }

    public void setReplyUsername(String replyUsername) {
        this.replyUsername = replyUsername;
    }

    public String getReplyCreatetime() {
    	DateFormat fmt=new SimpleDateFormat("yyyy-MM-dd HH:mm");
        return fmt.format(replyCreatetime);
    }

    public void setReplyCreatetime(Date replyCreatetime) {
        this.replyCreatetime = replyCreatetime;
    }

    public String getReplyContent() {
        return replyContent;
    }

    public void setReplyContent(String replyContent) {
        this.replyContent = replyContent;
    }

	@Override
	public String toString() {
		return "Replysecond [replysecondid=" + replysecondid + ", replyid="
				+ replyid + ", postid=" + postid + ", userid=" + userid
				+ ", replyUsername=" + replyUsername + ", replyCreatetime="
				+ replyCreatetime + ", replyContent=" + replyContent + "]";
	}
    
}